package com.sc.admin.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sc.admin.pojo.Menu;
import com.sc.admin.service.MenuService;

@Controller
public class TestController {
	@Autowired
	private MenuService menuService;
	
	@RequestMapping("/test")
	public String test(Model model) {
		Menu menu = menuService.getMenuById(1);
		model.addAttribute(menu);
		return "test";
	}
}
